package com.gaoyi.crm.repository.base;

import com.gaoyi.crm.db.CacheDatabase;
import com.gaoyi.crm.db.dao.BaseDao;

public abstract class BaseCacheRepository<T, D extends BaseDao<T>> {
    protected D mDao;
    protected final CacheDatabase mDatabase;

    protected abstract D getDao();

    public BaseCacheRepository() {
        mDatabase = CacheDatabase.getDatabase();
        mDao = getDao();
    }
}
